package com.codebattery.repository;

/**
 *
 * MyBatis的BaseDao基类
 *
 * @Author cay91
 * @Date 2020-08-15 5:03 PM
 * @Version 1.0
 */
import java.util.List;
import java.util.Map;

public interface BaseDao<T> {

    //增
    int save(String mapper,Map<String ,Object> parameter)throws Exception;

    //改
    int update(String mapper,Map<String ,Object> parameter)throws Exception;

    //删
    int delete(String mapper,Map<String ,Object> parameter)throws Exception;

    //查
    T find(String mapper,Map<String ,Object> parameter)throws Exception;
    List<T> findList(String mapper,Map<String ,Object> parameter)throws Exception;

}
